package com.malachi.plugin.validateattr.service.impl;

import com.malachi.plugin.validateattr.service.DateValidateAdapter;

import java.util.Date;

public class BillBelongTimeValidateAdapter implements DateValidateAdapter {
    @Override
    public String validate(Date date) {
        // 不能大于等于当前时间
        if (date.getTime() >= System.currentTimeMillis()) {
            return "不能大于等于当前时间";
        }
        return "";
    }
}
